{__NOLAYOUT__}
<form style="padding:20px;" class="layui-form layui-form-pane ruleForm" id="ruleEdit">
    <input type="hidden" value="{$info.id}" name="id" />
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>父节点：</label>
        <div class="layui-input-block">
            <select name="pid" id="parent_id" lay-filter="parent_id" lay-verify="required" lay-search="" >
                <option value="0">根节点</option>
                {volist name='ruleList' id='vo'}
                {if $info}
                <option {if $info[
                'pid']==$vo.id}selected{/if} value="{$vo.id}">{$vo.ltitle}</option>
                {else /}
                <option {if $pid==$vo.id}selected{/if} value="{$vo.id}">{$vo.ltitle}</option>
                {/if}
                {/volist}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>名称：</label>
        <div class="layui-input-inline">
            <input type="text" name="title"  placeholder="请输入名称" value="{$info.title}" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">请输入操作的名称</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>控制器/方法：</label>
        <div class="layui-input-inline">
            <input type="text" name="name"  placeholder="请输入名称" value="{$info.name}" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">格式：controller/method</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>图标：</label>
        <div class="layui-input-inline">
            <input type="text" name="icon"  placeholder="请输入编码" value="{$info.icon}" autocomplete="off" class="layui-input">
        </div>
    </div>
</form>
<script>
    layui.use('form', function(){
        layui.form.render();
    });
</script>